package com.woniuxy.demo.epai.dao;

import com.woniuxy.demo.epai.model.AuctionRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniuxy.demo.epai.vo.ArecordVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 出价记录表 Mapper 接口
 * </p>
 *
 * @author epai
 * @since 2021-04-12
 */

public interface AuctionRecordMapper {

    List<ArecordVo> getArecordVoById(int pid);

    @Insert("insert into e_auction_record(uid,pid,money,time) value(#{uid},#{pid},#{money},#{time})")
    @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id")
    int addAuctionRecord(AuctionRecord auctionRecord);
}
